home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-1.dms / in.adf / Examples.Lha / DebugTutorial / address.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  743 b   |  35 lines

  1. #ifndef ADRESSEN_H
  2. #define ADRESSEN_H
  3.  
  4. #ifndef EXEC_LISTS_H
  5. #include <exec/lists.h>
  6. #endif
  7.  
  8. #ifndef _INCLUDE_STDIO_H
  9. #include <stdio.h>
  10. #endif
  11.  
  12. struct Address {
  13.     struct MinNode node;
  14.     char *name;
  15.     char *firstname;
  16.     char *street;
  17.     char *town;
  18. };
  19.  
  20. // alloc an address and copy parameters.
  21. struct Address *allocAddress(char *name, char *firstname, char *street, char *town);
  22. // free an address
  23. void freeAddress(struct Address *);
  24. // add an address to the addresslist
  25. void addAddress(struct Address *);
  26.  
  27. // alloc an address and read from ASCII mask
  28. struct Address *readAddressmask();
  29. // write an address in an ASCII mask
  30. void writeAddressmask(FILE *, struct Address *);
  31. // write addresslist to an ASCII mask
  32. void writeAddresslist(FILE *);
  33.  
  34. #endif
  35.